/**
 * Each request that uses the datastore creates a new instance of the PersistenceManager class. 
 * It does so using an instance of the PersistenceManagerFactory class.
 * That is what my class here does
 */
package gae.google.tcserver.db.factory;

import javax.jdo.PersistenceManagerFactory;
import javax.jdo.JDOHelper;

/**
 * @author Lars Friberg
 *
 * @date 2011-01-15
 */
public class PMFactory {
	// creates a static PersistenceManagerFactory to be able to store objects
	private static final PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional");

	// I don't want anyone to be able of making objects of this class
    private PMFactory() {}

    // a getter for the static PersistenceManagerFactory
    public static PersistenceManagerFactory get() {
        return pmfInstance;
    }
}
